package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.User;
import cn.wolfcode.trip.base.query.QueryObject;
import com.github.pagehelper.PageInfo;

public interface IUserService {
    void saveOrUpdate(User user);

    User login(String email, String password);

    PageInfo<User> list(QueryObject qo);

    User getAuthorInfoById(Long id);

    void insertRelations(Long id, Long followerId);

    int queryNums(Long userId);

    int queryFans(Long userId);

    void deleteRelations(Long id, Long followerId);

    Boolean getIsRelation(Long userId, Long followerId);
}
